<?php
/* Widget Content */
$deal_pod = new Pod('deal');
$deal_pod->page = 1;
$deal_pod->search = false;
$where = "t.camp_end > ".fix_date()." && tag_pick.name='exhibitions'";
$deal_pod->findRecords('id DESC', 5, $where);
if($deal_pod->getTotalRows() > 0){
echo '<h2>Exhibitions</h2>';
$j=1;
while($deal_pod->fetchRecord()){
    echo '<div class="listlink" style="width: 250px;border-bottom: 1px solid #AFAFAF;padding-bottom:2px;"><a href="'.BUZZR_URL.'/deals/'.$deal_pod->get_field('camp_link').'">'.$j.'. '.substr($deal_pod->get_field('name'), 0, 50).'</a>
    <div class="date2">Begins: '.date('d-M', strtotime($deal_pod->get_field('camp_start'))).' | Ends: '.date('d-M', strtotime($deal_pod->get_field('camp_end'))).'</div></div><br />';
$j++;
}
echo '<a href="'.BUZZR_URL.'/t-exhibitions">...More Exhibitions!</a>';
}
/* Widget Content */
?>

<?php
/* Widget Logic */ 
is_pod_page('localoffers') || is_pod_page('localoffers/*') || is_pod_page('localoffers/*/c-*')
/* Widget Logic */ 
?>